package com.ruoyi.analyse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录对象 ds_xx
 *
 * @author ruoyi
 */
public class ChatMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long xxId;

    /** 消息内容 */
    private String xxContent;

    /** 聊天id */
    @Excel(name = "聊天id")
    private String ltId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 归属方 */
    @Excel(name = "归属方")
    private String role;

    /** 班级id */
    private Long classId;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    public void setXxId(Long xxId)
    {
        this.xxId = xxId;
    }

    public Long getXxId()
    {
        return xxId;
    }

    public void setXxContent(String xxContent)
    {
        this.xxContent = xxContent;
    }

    public String getXxContent()
    {
        return xxContent;
    }

    public void setLtId(String ltId)
    {
        this.ltId = ltId;
    }

    public String getLtId()
    {
        return ltId;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setRole(String role)
    {
        this.role = role;
    }

    public String getRole()
    {
        return role;
    }

    public void setClassId(Long classId)
    {
        this.classId = classId;
    }

    public Long getClassId()
    {
        return classId;
    }
    @Override
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime()
    {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("xxId", getXxId())
            .append("xxContent", getXxContent())
            .append("ltId", getLtId())
            .append("userName", getUserName())
            .append("role", getRole())
            .append("classId", getClassId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
